how to write swagger api doc for put request